import { createRouter, createWebHashHistory } from "vue-router";
import Login from '../components/Login.vue'


const routes = [
    {
      path: '/',
      // 重定向到login中
      redirect: '/login'
    },
    {
        path: '/login', // 主页
        component: Login
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router